from celery import Celery

# 创建celery对象
celery_app = Celery('demo')

# 加载config配置文件
celery_app.config_from_object('celery_tasks.config')

# celery worker启动时自动加载的tasks任务
celery_app.autodiscover_tasks(['celery_tasks.sms'])
